reftests: Fix frame inhibiting
authorAlexander Larsson <alexl@redhat.com>
Thu, 28 May 2020 13:10:38 +0000 (15:10 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 28 May 2020 13:13:13 +0000 (15:13 +0200)
commit20f15f51119cb5a7fe188721eb473ab90b19d7f0
tree551bc7bd78d421aa1d6aece7736f1bb7400de4ae
parent9ef3e700400d5d4d4fcfeb37cfe757566658b456
reftests: Fix frame inhibiting

Actually inhibit snapshotting of frames from reftest_inhibit_snapshot.
We were not ignoring the case where inhibit_count > 0, and then disconnected
the callback meaning we only ever got the first snapshot.
testsuite/reftests/reftest-snapshot.c